<style scoped>
	#allmap{width:100%;height:500px;}
</style>
<template>
	<div>
		<div id="allmap"></div>
		<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=qOmzXO4sdG6ntDfavbnxp9F2ey3GMALT"></script>
	</div>
</template>
<script>
	export default {
		date () {
			return {

			}
		},
		ready () {
			var map = new BMap.Map('allmap');
				map.centerAndZoom(new BMap.Point(116.404269,39.916042), 12);
				map.addControl(new BMap.NavigationControl());        // 添加平移缩放控件
				map.addControl(new BMap.ScaleControl());             // 添加比例尺控件
				map.addControl(new BMap.OverviewMapControl());       //添加缩略地图控件
				map.enableScrollWheelZoom();                         //启用滚轮放大缩小
				map.disable3DBuilding();
		},
		methods () {}
	}
</script>